package com.security.it.dto;

import com.security.it.validator.MyConstraint;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {
    private static final long serialVersionUID = 1303752936681286127L;

    @NotBlank
    private String userName;
    @MyConstraint
    private String password;
}
